﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BotvaBot.Configuration;
using System.Configuration;
using BotvaBot.BusinessLayer.Enums;
using Helpers.Enums;

namespace BotvaBot.BusinessLayer.Configuration.Personaj
{
    public class KulonCfg : CustomConfigElementBase
    {
        [ConfigurationProperty("ID")]
        public int ID
        {
            get { return (int)base["ID"]; }
        }

        [ConfigurationProperty("Type")]
        public Kulon Type
        {
            get { return EnumHelper.ResolveValueByName<Kulon>(base["Type"].ToString()); }
        }
    }
}
